package cn.reinforce.util.echarts;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Bar {

    private String title;

    private List<String> legend = new ArrayList<>();

    private List<String> xAxis = new ArrayList<>();

    private List<Series> series = new ArrayList<>();

    @Data
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public class Series {

        private String name;

        private String type;

        private String stack;

        private List<Double> data = new ArrayList<>();

        private Label label;

        private ItemStyle itemStyle;

    }


}
